package org.gd.hellojavacore.tests;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-10-22 11:02
 */
public class SimpleDateFormatTest {

    public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("dd HH:mm:ss");


        Calendar calendar = Calendar.getInstance();
        calendar.setTime(new Date(10*1000L));
        calendar.add(Calendar.HOUR_OF_DAY, -3);

        System.out.println(format.format(calendar.getTime()));
    }
}
